package com.younion.common.constants;


public enum Status {
	
	//ACTIVE("ACTIVE","启用"), UNACTIVE("UNACTIVE","禁用"),APPROVABLE("APPROVABLE", "已审批"), UNAPPROVABLE("UNAPPROVABLE", "待审批");
	ACTIVE("ACTIVE","启用"), UNACTIVE("UNACTIVE","禁用");
	private String name;
	private String title;

	private Status(String name,String title) {
		this.name = name;
		this.title = title;
	}

	public String getName() {
		return name;
	}
	
	public String getTitle(){
		return title;
	}

	public static Status valueOfName(String name) {
		for (Status e : Status.values()) {
			if (e.getName().equals(name)) {
				return e;
			}
		}
		return null;
	}

	public static void main(String[] args) {
		System.out.print(Status.valueOfName("*"));
	}
	
}
